home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / AMOS / AMOSList0597 / AMOSLIST / text0289.txt < prev    next >
Encoding:
Text File  |  1997-06-01  |  1.2 KB  |  42 lines

  1. On 24-mei-97 Laurie Curwood wrote:
  2.  
  3. >I am writing my own file requestor (the AMOS ones are 
  4. >horrible, and the extension requestors are a bit crappy), 
  5. >but I have discovered a problem: How do I read assigns?
  6.  
  7. >At the moment, when looking at drives, I use Dev First$ 
  8. >and Dev Next$, but this only reads proper devices. 
  9. >Sometimes, when used from direct mode, it reads the 
  10. >assigns, but never from interpreted/compiled.
  11.  
  12. >Has anyone else had this problem, and how did they get around it?
  13.  
  14. Well, I just I tried it myself and it works fine: Both mounts and assigns are
  15. displayed. I tried it interpreted in Creator 1.36 and Pro 1.12 and compiled
  16. with the Creator compiler. (My, that's a lot of coverdisks :-).)
  17.  
  18. I also used two filters: "" and "*".
  19.  
  20. All these versions did the same, which was display all devices.
  21.  
  22. This is the test program I used:
  23.  
  24. Print Dev First$("*")              'Or Print Dev First$("")
  25. TELLER = 1
  26. Repeat
  27.   A$ = Dev Next$
  28.   If TELLER = 15
  29.     Wait Key
  30.     TELLER = 0
  31.   Endif
  32.   Inc TELLER
  33.   Print A$
  34. Until A$ = ""
  35.  
  36. -- 
  37. Branko Collin                                              . |. .
  38. collin@xs4all.nl                                         . . || ...
  39. http://www.xs4all.nl/~collin                          . ....||| .. ..
  40.  
  41.  
  42.